﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Sale_DAL;
namespace Sale_Operation
{
    public abstract class Component
    {
        protected DataBase db = new DataBase();
        public abstract bool Save(object obj);
        public abstract bool HasExists(object obj);
        public abstract bool Delete(object obj);
        public virtual DataTable GetList(string strCondition)
        {
            return new DataTable();
        }
        public abstract DataTable GetList(string strCondition,int iCurrentPageIndex, ref int iRecordCount);
        public abstract object GetModel(object obj);
    }
}
